import {
  createRouter,
  createWebHashHistory
} from 'vue-router'

export const constantRoutes = [
  // {
  //   /* 系统主页 */
  //   path: "/",
  //   name: "appLogin",
  //   component: () => import("@/views/Login/appLogin.vue"),
  //   hidden: true,
  //   meta:{
  //     mainMenuTitle:'登录',
  //     pageTitle: "登录",
  //   }
  // },
  {
    /* 首页 */
    path: "/",
    name: "homePage",
    component: () => import("@/views/homePage/homepageIndex.vue"),
    hidden: true,
    meta:{
      pageTitle: "首页",
    }
  }
  // {
  //   path: "/403",
  //   name: "403",
  //   // component: () => import("@/views/403"),
  //   hidden: true,
  // },
  // {
  //   path: "/404",
  //   name: "404",
  //   // component: () => import("@/views/404"),
  //   hidden: true,
  // },
]

const asyncRoutes = []

export { asyncRoutes }

const routes = createRouter({
  history: createWebHashHistory(),
  routes: constantRoutes,
  scrollBehavior: () => ({ top: 0 })
})

export default routes
